﻿using System;

namespace Sustainalytics.LongRunningTaskManager.Interface
{
    /// <summary>
    /// Thrown when the task result type is not supported.
    /// </summary>
    public class LongRunningTaskResultTypeNotSupportedException : Exception
    {
        /// <summary>
        /// Not supported task result type.
        /// </summary>
        public LongRunningTaskResultTypeEnum TaskResultType { get; set; }


        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="taskResultType"> Task result type. </param>
        public LongRunningTaskResultTypeNotSupportedException(LongRunningTaskResultTypeEnum taskResultType)
        {
            this.TaskResultType = taskResultType;
        }
    }
}
